<%@page import="com.stms.bean.Student"%>
<%@page import="com.stms.bean.User"%>
<%@page import="java.util.List"%>
<%@page import="com.stms.dao.StudentDao"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8">
	<title>学生信息管理系统-操作成功</title>
	<link rel="stylesheet" type="text/css" href="css/style.css">
</head>
<body>

<div class="header">
	<div class="content of">
		<h1 class="logo fl">学生信息管理系统</h1>
		<c:choose>
			<c:when test="${isLogin != null }">
				<c:choose>
					<c:when test="${isLogin }">
						<div class="user fr">
							<span class="red"> <c:out value="${loginUser.getUserName() }"></c:out> </span>&nbsp;&nbsp;欢迎回来&nbsp;&nbsp;
							<a href="doLogout"><button>退出登录</button></a>
						</div>
					</c:when>
					<c:otherwise>
						<form class="user fr" action="doLogin" method="post" onsubmit="return loginVerify();">
							<input type="text" id="uName" name="uName">
							<input type="password" id="pWord" name="pWord">
							<button type="submit">登录</button>
							<a href="register.jsp"><button>注册</button></a>
						</form>
						<p class="red"> <c:out value="${msg }"></c:out> </p>
					</c:otherwise>
				</c:choose>
			</c:when>
			<c:otherwise>
				<form class="user fr" action="doLogin" method="post" onsubmit="return loginVerify();">
					<input type="text" id="uName" name="uName">
					<input type="password" id="pWord" name="pWord">
					<button type="submit">登录</button>
					<a href="register.jsp"><button>注册</button></a>
				</form>
			</c:otherwise>
		</c:choose>
	</div>
</div>
	<div class="content of">
		<div class="side fl">
			<ul>
				<li><a href="index.jsp">首页</a></li>
				<li><a href="studentList.jsp">学生管理</a></li>
				<li><a href="addStudent.jsp">添加学生</a></li>
			</ul>
		</div>
		

		<div class="main fr">
			<h2 class="ct">操作成功</h2>
			
		</div>
	</div>
</div>
<div class="footer">
	<div class="content">
		<p class="ct">版权所有&copy;湖南大众传媒职业技术大学</p>
	</div>
</div>
<script type="text/javascript" src="js/all.js"></script>
</body>
</html>